package com.zking.ssm.PMQ.mapper;

import com.zking.ssm.PMQ.model.Role;
import com.zking.ssm.PMQ.model.User;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface RoleMapper {
    int deleteByPrimaryKey(Long roleId);

    int insert(Role record);

    int insertSelective(Role record);

    Role selectByPrimaryKey(Long roleId);

    int updateByPrimaryKeySelective(Role record);

    int updateByPrimaryKey(Role record);

    //查询所有的角色
    List<Role> listRole(Role record);

    //查询单个管理员角色
    Role listUserRole(Long usrId);



}